﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects
{
    public class RestaurantMenuNorm : BusinessObject
    {
        public RestaurantMenuNorm()
        {
            AddRule(new ValidateRequired("MenuNormID"));

            AddRule(new ValidateRequired("MenuNormCode"));
            AddRule(new ValidateLength("MenuNormCode", 0, 50));

            AddRule(new ValidateRequired("MenuNormName"));
            AddRule(new ValidateLength("MenuNormName", 0, 255));

            AddRule(new ValidateRequired("RestaurantID"));

            AddRule(new ValidateRequired("MenuID"));
        }

        public RestaurantMenuNorm(string menuNormId, string menuNormCode, string menuNormName, string restaurantId, string description, string menuId)
            : this()
        {
            MenuNormID = menuNormId;
            MenuNormCode = menuNormCode;
            MenuNormName = menuNormName;
            RestaurantID = restaurantId;
            Description = description;
            MenuID = menuId;
        }

        public string MenuNormID { get; set; }

        public string MenuNormCode { get; set; }

        public string MenuNormName { get; set; }

        public string RestaurantID { get; set; }

        public string Description { get; set; }

        public string MenuID { get; set; }
    }
}